import store from '@/store'

//控制按钮显示权限
export function hasBtnPermission(permission) {
    const role = store.getters.role
    return permission.indexOf(role) > -1
}